<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="../swGenerarPlantilla.wsdl"/>
      <rootElement name="GENERARPLANTILLAMC" namespace="http://mincetur.gob.pe/SIC/documento/generarPlantillaMC"/>
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="http://srvmcturucm:8011/S_Compartidos/Proxy/swBIPublisher_Proxy?WSDL"/>
      <rootElement name="runReport" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [FRI JUN 28 15:57:43 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:apachesoap="http://xml.apache.org/xml-soap"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:ns3="http://mincetur.gob.pe/SIC/documento/guardarDocumentoMR"
                xmlns:ns2="http://mincetur.gob.pe/SIC/documento/generarPlantillaMR"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns5="http://mincetur.gob.pe/SIC/documento/DocumentoTipo"
                xmlns:ns6="http://mincetur.gob.pe/SIC/utilitarios/errorMR"
                xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:ns4="http://mincetur.gob.pe/SIC/documento/RelacionarDocumentoMC"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:ns1="http://mincetur.gob.pe/SIC/documento/generarPlantillaMC"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:impl="http://xmlns.oracle.com/oxp/service/PublicReportService"
                xmlns:client="http://mincetur.gob.pe/SIC/documento/swGenerarPlantilla"
                xmlns:ns0="http://mincetur.gob.pe/SIC/documento/PlantillaTipo"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl ns3 ns2 ns5 ns6 plnk wsdl ns4 ns1 client ns0 xsd apachesoap wsdlsoap impl xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:template match="/">
    <impl:runReport>
      <impl:reportRequest>
        <impl:attributeFormat>
          <xsl:value-of select="/ns1:GENERARPLANTILLAMC/ns1:PLANTILLA/@DES_FORMATO"/>
        </impl:attributeFormat>
        <impl:attributeLocale>
          <xsl:value-of select="/ns1:GENERARPLANTILLAMC/ns1:PLANTILLA/@DES_LOCAL"/>
        </impl:attributeLocale>
        <impl:attributeTemplate>
          <xsl:value-of select="/ns1:GENERARPLANTILLAMC/ns1:PLANTILLA/@DES_PLANTILLA"/>
        </impl:attributeTemplate>
        <impl:parameterNameValues>
          <xsl:for-each select="/ns1:GENERARPLANTILLAMC/ns1:PLANTILLA/ns0:PARAMETROS/ns0:PARAMETRO">
            <impl:item>
              <impl:name>
                <xsl:value-of select="@DES_NOMBREPARAMETRO"/>
              </impl:name>
              <impl:values>
                <impl:item>
                  <xsl:value-of select="@DES_VALORPARAMETRO"/>
                </impl:item>
              </impl:values>
            </impl:item>
          </xsl:for-each>
        </impl:parameterNameValues>
        <impl:reportAbsolutePath>
          <xsl:value-of select="/ns1:GENERARPLANTILLAMC/ns1:PLANTILLA/@DES_RUTAPLANTILLA"/>
        </impl:reportAbsolutePath>
        <impl:sizeOfDataChunkDownload>
          <xsl:value-of select="/ns1:GENERARPLANTILLAMC/ns1:PLANTILLA/@NUM_TIPOENVIO"/>
        </impl:sizeOfDataChunkDownload>
      </impl:reportRequest>
      <impl:userID>
        <xsl:text disable-output-escaping="no">weblogic</xsl:text>
      </impl:userID>
      <impl:password>
        <xsl:text disable-output-escaping="no">Oracle01</xsl:text>
      </impl:password>
    </impl:runReport>
  </xsl:template>
</xsl:stylesheet>
